var CusNameSpace = window.CusNameSpace || {};
/*
<<<<<<< HEAD
Class CusHmiUi
Function
*/
CusNameSpace.CusHmiUi = function() {
  this.name = 'CusHmiUi';
};

CusNameSpace.CusHmiUi.prototype.OnInitDlg=function(){

	$(".content_page_m_child").css("display","none");
	$("#page_state_m_systeminfo").css("display","block");
	$("#block_content_page").css("display","block");


        //登录界面初始化
        $("#modle_bt_login_general").css("background-color","#3d4e60");
	$("#modle_bt_login_manager").css("background-color","#337ab7");

	this.OnMapInit();
	
};
//地图start
CusNameSpace.CusHmiUi.prototype.OnMapInit=function(){

	// Connect to ROS.
	var hostIp = window.location.host;
	var wsPath = "ws://" + hostIp + ":9090";
	
	//'ws://192.168.111.91:9090'
	var ros = new ROSLIB.Ros({
		url : wsPath
	});

	// Create the main viewer.
	var viewer = new ROS2D.Viewer({
	divID : 'nav',
	width : 350,
	height : 400
	});

	// Setup the nav client.
	var nav = NAV2D.OccupancyGridClientNav({
	ros : ros,
	rootObject : viewer.scene,
	viewer : viewer,
	serverName : '/pr2_move_base'
	});
	
=======
 Class CusHmiUi
 Function
 */
CusNameSpace.CusHmiUi = function () {
    this.name = 'CusHmiUi';
};

CusNameSpace.CusHmiUi.prototype.OnInitDlg = function () {

    //界面显示初始化


    $("#block_content_page").css("display", "block");

    //登录界面初始化
    $("#modle_bt_login_general").css("background-color", "#3d4e60");
    $("#modle_bt_login_manager").css("background-color", "#337ab7");

    //logo图片动态加载对应图片修改后，浏览器访问不更新
    var logoImg = 'img/home_n.png' + '?t=' + Math.random(); //加载图片
    $(".page_process_m_open_list_n").attr("src", logoImg);
    
    $(".content_page_m_child").css("display", "none");

    this.OnMapInit();
};
//地图start
CusNameSpace.CusHmiUi.prototype.OnMapInit = function () {

    // Connect to ROS.
    var hostIp = window.location.host;
    var wsPath = "ws://" + hostIp + ":9090";

    //'ws://192.168.111.91:9090'
    var ros = new ROSLIB.Ros({
        url: wsPath
    });

    // Create the main viewer.
    var viewer = new ROS2D.Viewer({
        divID: 'nav',
        width: 350,
        height: 400
    });

    // Setup the nav client.
    var nav = NAV2D.OccupancyGridClientNav({
        ros: ros,
        rootObject: viewer.scene,
        viewer: viewer,
        serverName: '/pr2_move_base'
    });

>>>>>>> dev
};
